|
|||||||||||||||||||
| 30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
| Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
| PersistentObject.java | - | 100% | 100% | 100% |
|
||||||||||||||
| 1 |
/*
|
|
| 2 |
* Created on Jul 26, 2004
|
|
| 3 |
*/
|
|
| 4 |
package org.marketchangers.prayer;
|
|
| 5 |
|
|
| 6 |
/**
|
|
| 7 |
* All objects that need to be persisted should extend this class.
|
|
| 8 |
* Hibernate highly recommends that all persisted objects should contain an id field
|
|
| 9 |
* and that it should be a nullable (i.e. non-primative) type.
|
|
| 10 |
* @author Jason Williams
|
|
| 11 |
*/
|
|
| 12 |
public class PersistentObject { |
|
| 13 |
|
|
| 14 |
protected Integer id = null; |
|
| 15 |
|
|
| 16 |
/**
|
|
| 17 |
* @hibernate.id generator-class="native"
|
|
| 18 |
* @return
|
|
| 19 |
*/
|
|
| 20 | 50 |
public Integer getId() {
|
| 21 | 50 |
return id;
|
| 22 |
} |
|
| 23 |
|
|
| 24 |
/**
|
|
| 25 |
* @param int1
|
|
| 26 |
*/
|
|
| 27 | 46 |
public void setId(Integer int1) { |
| 28 | 46 |
id = int1;
|
| 29 |
} |
|
| 30 |
|
|
| 31 |
} |
|
| 32 |
|
|
||||||||||